package com.qqserver.service;

import java.util.HashMap;

/**
 * 该类用于管理和客户端连接的线程
 */
public class ManageServerConnectClientThread {
    private static HashMap<String,ServerConnectClientThread>hm=new HashMap<>();

    public static void addServerConnectClientThread(String useId,ServerConnectClientThread serverConnectClientThread){
        hm.put(useId,serverConnectClientThread);
    }
    //根据客户端用户名获取相关联的线程
    public static ServerConnectClientThread getServerConnectClientThread(String userId){
        return hm.get(userId);
    }
}
